<template>
	<view class="main-page">
		<view class="content-box">
			<text class="font-333-44 font-weight-600" style="line-height: 61rpx;">
				{{noticeDetail.title}}</text>
			<text class="font-999-28 mt-20">{{noticeDetail.createTime}}</text>	
			<text class="font-333-34 mt-60" style="line-height: 56rpx;">
				{{noticeDetail.intro}}
			</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				noticeId:'',
				noticeDetail:{
					title:'',
					intro:'',
					createTime:''
				}
			}
		},
		
		onLoad(options) {
			this.noticeId = options.noticeId
			this.loadDetail()
		},
		
		methods: {
			loadDetail(){
				let that = this
				this.http({
					url:'/notice/findNoticeDetail',
					method:'POST',
					data:{
						noticeId:this.noticeId
					},
					success(res){
						if (res.code == 200){
							that.noticeDetail = res.data
						}
					},
					failed(e){
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.content-box{
		display: flex;
		flex-direction: column;
		width: calc(100% - 80rpx);
		margin: 40rpx;
	}
</style>
